﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Bootstrap.Master" CodeBehind="AdminControl.aspx.vb" Inherits="SATS.newAdmin" %>

<asp:Content ID="WarningContent" ContentPlaceHolderID="WarningContent" runat="server">
    <asp:ValidationSummary ID="ValidationSummary" runat="server" />
    <div class="row-fluid" id="WarningContent_ValidationSummary" runat="server">
            <asp:Label ID="lblSuccess" runat="server" Font-Size="Large"
                Text="The new administrator has been added successfully."></asp:Label><asp:Button ID="btnReload" runat="server" Text="Refresh"
                    Width="82px" Height="25px" BackColor="#990000" ForeColor="#FFFFCC" />
        
    </div>
</asp:Content>
<asp:Content ID="MainContent" ContentPlaceHolderID="MainContent" runat="server">
    <div class="row-fluid">
        <div class="span12">
            <h2 class="style5">Add New Administrator</h2>
            <hr />
        </div>
    </div>


    <div class="row-fluid">
        <div class="span12">
            <asp:RequiredFieldValidator runat="server" ControlToValidate="txtAccessNet"
                ErrorMessage="User ID is required.">*
            </asp:RequiredFieldValidator>
            <asp:Label ID="Label2" runat="server" Font-Size="Medium"
                Text="User ID: "></asp:Label>
            <br />
            <asp:TextBox ID="txtAccessNet" runat="server" Width="150px"></asp:TextBox>
            <br />
            <asp:RequiredFieldValidator runat="server" ControlToValidate="txtEmail"
                ErrorMessage="Email Address is required.">*
            </asp:RequiredFieldValidator>
            <asp:Label ID="lblEmail" runat="server" Font-Size="Medium"
                Text="Email: "></asp:Label>
            <br />
            <asp:TextBox ID="txtEmail" runat="server" Width="150px"></asp:TextBox>
            <asp:RegularExpressionValidator runat="server" Display="Dynamic"
                ControlToValidate="txtEmail"
                ErrorMessage="Invalid Email"
                ValidationExpression="^[-a-z0-9~!$%^&*_=+}{\'?]+(\.[-a-z0-9~!$%^&*_=+}{\'?]+)*@([a-z0-9_][-a-z0-9_]*(\.[-a-z0-9_]+)*\.(aero|arpa|biz|com|coop|edu|gov|info|int|mil|museum|name|net|org|pro|travel|mobi|[a-z][a-z])|([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}))(:[0-9]{1,5})?$" />
            <br />
            <asp:Label ID="lblDepartment" runat="server" Font-Size="Medium"
                Text="Department:"></asp:Label>
            <br />
            <asp:DropDownList ID="ddDepartments" runat="server">
            </asp:DropDownList>
        </div>
    </div>

    <div class="row-fluid">
        <div class="span12">
            <asp:RequiredFieldValidator runat="server" ControlToValidate="AdminLevel"
                ErrorMessage="Admin Level is required.">*
            </asp:RequiredFieldValidator>
            <asp:Label ID="Label3" runat="server" Font-Size="Medium"
                Text="Admin Level: "></asp:Label>
            <br />
            <asp:DropDownList ID="AdminLevel" runat="server">
                <asp:ListItem Value="2">Regular Admin</asp:ListItem>
                <asp:ListItem Value="3">&quot;Super&quot; Admin</asp:ListItem>
            </asp:DropDownList>
        </div>
    </div>
    <br />

    <div class="row-fluid">
        <div class="span12">
            <asp:Button ID="btnAdd" runat="server" Text="Add Administrator"
                Width="140px" Height="30px" BackColor="#990000" ForeColor="#FFFFCC" />
        </div>
    </div>
</asp:Content>

<asp:Content ContentPlaceHolderID="Instructions" ID="instructions" runat="server">
    <ul>
        <li>User ID and Email are both required fields</li>
        <br />
        <li>Regular Admin and Super Admin are the same, except Super Admins can add/delete other admins</li>
        <br />
        <li>If users notice a problem with their involvements, an email will be sent to that department's admin</li>
    </ul>
</asp:Content>